﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucEditContactor.ascx.cs" Inherits="Customer_ucEditContactor" %>
<table style="width:99%;">
<tr style="height:1px; line-height:1px;" title="template">
        <td style="width:50px;">&nbsp;</td>
        <td style="width:140px;">&nbsp;</td>
        <td style="width:200px;">&nbsp;</td>
        <td style="width:auto;">&nbsp;</td>
        </tr>
    <tr>
    <td></td>
    <td class="td_title">联系人<span style="color:#ff0000;">* </span></td>
    <td>
        <asp:TextBox ID="txtContactorName" runat="server" CssClass="conint singleline"></asp:TextBox>
        <asp:DropDownList ID="drpContactorSubfix" runat="server">
            <asp:ListItem Text="先生" Value="0"></asp:ListItem>
            <asp:ListItem Text="女士" Value="1"></asp:ListItem>
        </asp:DropDownList>
        </td>
    <td><asp:RequiredFieldValidator ID="v4" 
                runat="server" ErrorMessage="必填" ControlToValidate="txtContactorName" 
                Display="Dynamic" EnableViewState="False" SetFocusOnError="True" 
                ValidationGroup="submit"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td class="td_title">电话<span style="color:#ff0000;">* </span></td>
    <td>
        <asp:TextBox ID="txtTel" runat="server" CssClass="conint singleline"></asp:TextBox></td>
    <td><asp:RequiredFieldValidator ID="v7" 
                runat="server" ErrorMessage="必填" ControlToValidate="txtTel" 
                Display="Dynamic" EnableViewState="False" SetFocusOnError="True" 
                ValidationGroup="submit"></asp:RequiredFieldValidator></td>
    </tr>
<tr>
    <td>&nbsp;</td>
    <td class="td_title">所在城市<span style="color:#ff0000;">* </span></td>
    <td>
        <asp:DropDownList ID="drpProvince" runat="server"
                DataTextField="dName" DataValueField="dID" 
                ondatabound="drpProvince_DataBound" AutoCallBack="True" 
                AutoPostBack="True" onselectedindexchanged="drpProvince_SelectedIndexChanged">
            </asp:DropDownList>
            <asp:DropDownList ID="drpCity" runat="server">
            </asp:DropDownList>
    </td>
    <td></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td class="td_title">手机</td>
    <td>
        <asp:TextBox ID="txtMobile" runat="server" CssClass="conint singleline"></asp:TextBox></td>
    <td>&nbsp;</td>
    </tr>
<tr>
    <td>&nbsp;</td>
    <td class="td_title">传真</td>
    <td>
        <asp:TextBox ID="txtContactorFax" runat="server" CssClass="conint singleline"></asp:TextBox></td>
    <td>&nbsp;</td>
    </tr>
<tr>
    <td>&nbsp;</td>
    <td class="td_title">电子邮箱</td>
    <td>
        <asp:TextBox ID="txtEmail" runat="server" CssClass="conint" Width="260px"></asp:TextBox></td>
    <td></td>
    </tr>
<tr>
    <td>&nbsp;</td>
    <td class="td_title">地址<span style="color:#ff0000;">* </span></td>
    <td colspan="2">
        <asp:TextBox ID="txtContactorAddress" runat="server" CssClass="conint" Width="260px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="v5" 
                runat="server" ErrorMessage="必填" ControlToValidate="txtContactorAddress" 
                Display="Dynamic" EnableViewState="False" SetFocusOnError="True" 
                ValidationGroup="submit"></asp:RequiredFieldValidator></td>
    </tr>
<tr>
    <td></td>
    <td class="style1">邮编<span style="color:#ff0000;">* </span></td>
    <td>
        <asp:TextBox ID="txtContactorZipcode" runat="server" CssClass="conint singleline"></asp:TextBox>
        <asp:RequiredFieldValidator ID="v6" 
                runat="server" ErrorMessage="必填" ControlToValidate="txtContactorZipcode" 
                Display="Dynamic" EnableViewState="False" SetFocusOnError="True" 
                ValidationGroup="submit"></asp:RequiredFieldValidator></td>
    <td></td>
    </tr>
</table>
<%if(CommandButtonsVisible){ %>
<div style="text-align:center;">
    <asp:Button runat="server" ID="btnSave" CssClass="input00"
        Text="保存联系人" onclick="btnSave_Click" ValidationGroup="submit" />
<asp:Button runat="server" ID="btnReset" Text="取消" onclick="btnReset_Click" CssClass="input00" /></div>
<%} %>